<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>电话</th>
            <th>性别</th>
            <th>地址</th>
    <foreach name="afields" item="vo">
        <th>{$vo}</th>
    </foreach>
    <th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
    <tr data-key="{$vo.id}">
        <td>{$vo.serial_no}</td>
        <td>{$vo.name}</td>
        <td><a href="#" style="color:#376EA7"><i class="fa fa-phone-square fa-fw"></i></a>{$vo.telphone} </td>
        <td>{$vo.sex}</td>
        <td>{$vo.address}</td>
    <foreach name="afields" item="field">
        <td>{$vo[$key]}</td>
    </foreach>
    <td>
        <ul class="xsui-operate-group">
            <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                <ul>
                    <li><a href="{:AddonU('customer_edit','id='.$vo['id'])}" class="lnk-edit" data-id="{$vo.id}" title="编辑 {$vo.name}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                    <li><a href="{:AddonU('CustomerAppointment/appointment_edit','customer_id='.$vo['id'])}" class="lnk-edit-dialog" data-id="{$vo.id}" title="预约 {$vo.name}"><i class="fa fa-edit fa-fw"></i>预约</a></li>
                    <li><a href="{:AddonU('CustomerDispatch/dispatch_edit','customer_id='.$vo['id'])}" class="lnk-edit-dialog" data-id="{$vo.id}" title="调度 {$vo.name}"><i class="fa fa-edit fa-fw"></i>调度</a></li>
                    <li><a href="{:AddonU('customer_recycle','id='.$vo['id'])}" class="lnk-remove" data-id="{$vo.id}" title="删除 {$vo.name}"><i class="fa fa-remove fa-fw"></i>回收站</a></li>
                </ul>
            </li>
        </ul>
    </td>
    </tr>
</foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>